 package cn.chint.manage.service.impl;

import java.util.List;

import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Isolation;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import cn.chint.manage.dao.MsgenterDao;
import cn.chint.po.MsgEnter;

@Service("msgenterService")
public class MsgenterServiceImpl implements cn.chint.manage.service.MsgenterService {
    @Autowired
    MsgenterDao msgenterDao;

    public Logger log = Logger.getLogger(getClass());
   
    @Transactional(value = "transactionManager", propagation = Propagation.REQUIRED, isolation = Isolation.DEFAULT, rollbackForClassName = {"java.lang.Throwable"})
    public void savemsg(MsgEnter m){
    	msgenterDao.savemsg(m);
    }

	@Override
	public void Update(String money,long id) {
		msgenterDao.Update(money, id);
		
	}

	public List<MsgEnter> Select(String provid,String cityid) {
		return msgenterDao.Select(provid, cityid);
	}
	
    

}
